package nodeList;
abstract class method {
    abstract public void fun1();
}

public class Test {
    public static void main(String[] args) {
        LinkedList sequence = new SequenceLinkImpl();
        sequence.add(1);
        sequence.add(2);
        sequence.add(3);
        sequence.add(4);

        sequence.set(2,666);
        Object[] datas = sequence.toArray();
        for(Object obj : datas) {
            System.out.print(obj+",");
        }
        System.out.println(sequence.get(1));
        System.out.println(sequence.set(1,222));
        System.out.println(sequence.get(1));

    }

}

